package com.bsmn.springboot.example.ctl;

import com.bsmn.springboot.example.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("/")
    public String hello(){
        return String.format("hello, welcome to %s space!",helloService.getMasterName());
    }
    
}
